package com.bdqn.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan("com.bdqn.mapper")
public class MybatisPlusConfig {  // 配置分页拦截器

    @Bean
    public PaginationInnerInterceptor paginationInnerInterceptor(){
        return new PaginationInnerInterceptor();
        // 设置最大单页限制数量，默认 500 条，-1 不受限制
    }
}
